import service from "@/utils/request.js";

const productApi = {
	//根据id查询
	selectById(id) {
		return service.get(`/product/selectById/${id}`);
	},
	selectByCategoryId(id) {
		return service.get(`/product/selectByCategoryId/${id}`);
	},
};

export default productApi;